﻿using System;
using SGCG.Model;
using System.Windows.Input;
using System.Windows;
using System.Windows.Media;

namespace SGCG.Actions
{
    public class CreateLineAction : BorderedObjectCreationAction<Line>
    {
        public CreateLineAction(PellBitmap bitmap) : base(bitmap) { }

        protected override Line CreateObject(int x, int y)
        {
            return new Line(null)
            {
                X1 = x,
                Y1 = y,
                X2 = x,
                Y2 = y,
                LineStyle = LineStyle.Normal,
                LineThickness = LineThickness.Normal,
                Color = Colors.Black
            };
        }
    }
}
